package com.laijiale.service;

import com.laijiale.dto.CommentInsertDTO;
import com.laijiale.dto.CommentPageDTO;
import com.laijiale.dto.CommentUpdateDTO;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.laijiale.entity.Comment;
import vo.CommentSimpleListVO;

import java.util.List;

/**
 * 开发评论表 服务层。
 *
 * @author laijiale
 * @since 2024-12-22
 */
public interface CommentService extends IService<Comment> {
    boolean insert(CommentInsertDTO dto);
    Comment select(Long id);
    List<CommentSimpleListVO> simpleList();
    Page<Comment> page(CommentPageDTO dto);
    boolean update(CommentUpdateDTO dto);
    boolean delete(Long id);
    boolean deleteBatch(List<Long> ids);

}
